﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/CommonPages/MasterPageFontEnd.master" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="Pages_CommonPages_Home" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="content_left_home">
          <div class="box">
            <h4>Upcoming Event</h4>                        
                    <asp:Image ID="imgCompeTop" runat="server" />                    			        			        
                    <div class="box_left_top">
                    <span class="lblDatex">Start Date: </span><asp:Label ID="lblDate" CssClass="date" DataTextFormatString="{0:dd/MM/yyyy}" runat="server" ></asp:Label>
                        <br />
                    <span class="lblDatex">End Date: </span><asp:Label ID="lblEndDate" CssClass="date" DataTextFormatString="{0:dd/MM/yyyy}" runat="server" ></asp:Label>
                        <br />
                        <asp:Label ID="lblName" CssClass="name" runat="server" ></asp:Label>
                        <asp:TextBox ID="txtDescription" Enabled="False" runat="server" CssClass="txtDescription" TextMode="MultiLine" ClientIDMode="Static"></asp:TextBox>
                        <asp:HyperLink ID="linkdetailCompetition"  runat="server" ClientIDMode="Static" >Detail competition</asp:HyperLink>
                    </div>
        </div>
        <div class="box">
             <h3>Last Competition Awards</h3>                        
            <asp:Label ID="lblNameAward" runat="server" ClientIDMode="Static" Text="Label"></asp:Label>                      			        			                            
                 
                <asp:DataList ID="dtaListAwards" runat="server" Width="100%" RepeatColumns="3" RepeatDirection="Horizontal" RepeatLayout="Flow">
                <ItemTemplate> 
                <p class="p"> <a class="a" href="<%#"detailDesign.aspx?PID=" + Eval("designId")%>"><%# Eval("designName")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <%# Eval("SumMark")%> </a> </p>                		            
                </ItemTemplate> 
                </asp:DataList>
        </div>              
    </div>        
    <div class="content_center_home">                     
                <h4>New Designs</h4>            
            <div class="dataList">                
                    <asp:DataList ID="dtListDesign" runat="server" Width="100%" RepeatColumns="3" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <ItemTemplate>  
                        <div class="item">                      
                            <asp:Image ID="imgDesign" runat="server" ImageUrl='<%# "~/Images/Design/" + Eval("designImage") %>' />
                            
			                <a href="<%#"detailDesign.aspx?PID=" + Eval("designId")%>" class="item_a"><%# Eval("name")%></a>		
                        </div>   	            
                        </ItemTemplate>
                    </asp:DataList>
                                    
            </div>        
    </div>
   <div class="content_right_home">
        <div class="box">
            <h2>Hot Competition</h2>                                              			        			                                                
                    <asp:Image ID="imgCompeBottom" runat="server" />                    			        			        
                    <div class="box_left_top">
                        <span class="lblDatex">Start Date: </span><asp:Label ID="lblDateBottom" CssClass="date" DataTextFormatString="{0:dd/MM/yyyy}" runat="server" ></asp:Label>
                        <span class="lblDatex">End Date: </span><asp:Label ID="lblEndDateBottom" CssClass="date" DataTextFormatString="{0:dd/MM/yyyy}" runat="server" ></asp:Label>
                        <br />
                        <asp:Label ID="lblNameBottom" CssClass="name" runat="server" ></asp:Label>
                        <asp:TextBox ID="txtDescriptionBottom" Enabled="False" runat="server" CssClass="txtDescription" TextMode="MultiLine" ClientIDMode="Static"></asp:TextBox>
                        <asp:HyperLink ID="linkDetailCompetitionBottom" runat="server" ClientIDMode="Static" >Detail competition</asp:HyperLink>
                    </div>   
            
        </div>
        <div class="box">
             <h1>Ongoing Competition </h1>                                 			        			                            
            <asp:DataList ID="dtListCompetitions" runat="server">
                    <ItemTemplate>  
                        <div class="item">                                                                              
			                <a href="<%#"DetailCompetion.aspx?CID=" + Eval("comId")%>" class="item_a"><%# Eval("name")%>&nbsp;&nbsp; <%# Eval("startDate")%>&nbsp;&nbsp;<%# Eval("endDate")%></a>		
                        </div>   	            
                    </ItemTemplate>
            </asp:DataList>    
        </div>                
   </div>
</asp:Content>

